package com.ptswitch.material.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ptswitch.material.dao.ContractSupplierMapper;
import com.ptswitch.material.model.contract.ContractSupplier;
import com.ptswitch.material.service.ContractSupplierService;

@Service
public class ContractSupplierServiceImpl implements ContractSupplierService {

    @Autowired
    private ContractSupplierMapper mapper;

    @Override
    @SuppressWarnings("unchecked")
    public List<String> findAllName() {
        return mapper.findAllName();
    }

    @Override
    public void save(ContractSupplier supplier) {
        mapper.save(supplier);
    }

    @Override
    public List<ContractSupplier> findAll(long first, long size) {
        return mapper.findAll(first, size);
    }

    @Override
    public long countAll() {
        return mapper.countAll();
    }

}
